package com.xiliubit.cloudpicture.controller;

import com.xiliubit.cloudpicture.common.BaseResponse;
import com.xiliubit.cloudpicture.common.ResultUtils;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
@Slf4j
@Tag(name = "健康检查")
public class MainController {

    @GetMapping("/healthy")
    @Operation(summary = "测试心跳")
    public BaseResponse<String> hello() {
        log.info("测试心跳");
        return ResultUtils.success("ok");
    }
}
